]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Use submenus when necessary
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 2 Aug 2022 23:23:29 +0000 (01:23 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Aug 2022 12:17:19 +0000 (12:17 +0000)
commitc2139b27dadb60ea1e312c250f42af089bf45f51
tree178d7b651846d706c97022ff9aa4909e38664047
parent03ded1dcf007d94e6da2016eaa8a0ce8f5d847a2
status/network: Use submenus when necessary

We currently stopped using submenus altogether, but that only works

 - if there is a single connection that represents
   the device as a whole

 - if there is just one device, so it is unambiguous
   what device items belong to

To implement that behavior, add a 'single-device-mode' property that
NMDeviceSection can set on its items, and have items update their
'use-submenu' property based on that.

For wireless devices it's a straight mapping, as its items represent
wireless networks that can appear and disappear by just walking around
(multiple wifi adapters also sounds rather fringey).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2407>
js/ui/status/network.js